package com.group9.handinhand.service.so;

import com.group9.handinhand.dao.model.EventTag;
/**
 * Class for service of event tag
 * @author Egeid
 *
 */
public class EventTagSO extends AbstractBaseSO {
	
    private TagSO tag;
	private EventSO event;
	/**
	 * converts to event tag model object
	 * @return
	 */
	public EventTag convertToModelObject() {
		EventTag model = (EventTag) convert(new EventTag());
		model.setEvent(this.event.convertToModelObject());
		model.setTag(this.tag.convertToModelObject());
		return model;
	}

	public TagSO getTag() {
		return tag;
	}

	public void setTag(TagSO tag) {
		this.tag = tag;
	}

	public EventSO getEvent() {
		return event;
	}

	public void setEvent(EventSO event) {
		this.event = event;
	}

	@Override
	public String toString() {
		return "EventTagSO [tag=" + tag + ", event=" + event + "]";
	}
	
	
}
